home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap29 / sams_pop.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  912 b   |  19 lines

  1. <script language = JavaScript>
  2. function sams_pop_up(){
  3. //First, define the window's attributes and dimensions
  4. msg=open('','NewWindow','toolbar=no,location=no,directories=no, 
  5. [ic:ccc]status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory 
  6. [ic:ccc]=yes,width=255,height=150');
  7. //Next, define the document's general characteristics
  8. msg.document.write('<HEAD><TITLE>Nope!...Everything is Fine 
  9. [ic:ccc]Here!</TITLE><HEAD><BODY BGCOLOR =
  10. [ic:ccc]#ffffff></BODY>');
  11. //Lastly, write the message
  12. msg.document.write('<font face = arial,
  13. [ic:ccc]helvetica size = -1><center>The Script Works Well</center><ul
  14. [ic:ccc]type = square><li>We see no error messages<li>The browser did
  15. [ic:ccc]not freeze<li>The monitor did not blow 
  16. [ic:ccc]up<br><br><center></ul><form><input type = button value =
  17.  [ic:ccc]Okay! onClick = window.close();></form></center></p>');       } //JavaScript Ends -->
  18. </script>
  19.